Automated stand-up and sit-down detection for robot-assisted body-weight support training with the FLOAT