Inertial measurement system for swimming rehabilitation