Power-aware distributed protocol for a connectivity problem in wireless sensor networks