Energy Management in Performance-Sensitive Wireless Sensor Networks