Warping NMPC for online generation and tracking of optimal trajectories