Design of Efficient MAC Protocols for IEEE 802.15.4-based Wireless Sensor Networks