An Adaptive Sleep-Time Management Model for Wireless Sensor Networks