On the solution of the tracking problem for nonlinear systems with MPC