Investigating the On-board Data Processing for {IMU}-based Sensors in Motion Tracking for Rehabilitation