Bio-Inspired Synchronization Of Pulse-Coupled Oscillators And Its Application To Wireless Sensor Networks