Design Of Reliable And Sustainable Wireless Sensor Networks: Challenges, Protocols And Case Studies