Generic Architecture for Power-Aware Routing in Wireless Sensor Networks