Improving the AODV-based ZigBee routing protocol through pivots