A Survey on Wireless Body Area Networks: Technologies and Design Challenges