Seol mar théacs é seo: A real-time gradient method for nonlinear model predictive control