Energy-Aware Gas Sensing Using Wireless Sensor Networks