A Study of Medium Access Control Protocols for Wireless Body Area Networks