Real-time reference trajectory adaptation for haptic shared control during teleoperation