A fast nonlinear model predictive control strategy for real-time motion control of mechanical systems