Towards Safer Rehabilitation: Improving Gait Trajectory Tracking for Lower Limb Exoskeletons Using Offline