Power Consumption Reduction in Wireless Sensor Networks through Optimal Synchronization