Modeling Energy Consumption of Wireless Sensor Network by SystemC