Cross-layer network formation for energy-efficient IEEE 802.15.4/ZigBee Wireless Sensor Networks