Simulating the Power Consumption of Large-Scale Sensor Network Applications