Comprehensive Evaluation of the IEEE 802.15.4 MAC Layer Performance with Retransmissions