Energy aware routing based on energy characterization of devices: Solutions and analysis