An Acceleration and Magnetic Sensor Fusion Technique for Range of Motion Rehabilitation