Range-Based Clock Synchronization Protocol for Wireless Sensor Networks