Performance Evaluation of MAC Mechanisms in Wireless Sensor Networks