A SystemC-centric Approach for Simulation and Generation of WSN Applications Targeted to ZigBee