Bio-feedback System for Rehabilitation Based on a Wireless Body Area Network