Sensor-Based Assessment of the Quality of Human Motion During Therapeutic Exercise