Nonlinear model predictive control applied to vision-based spacecraft landing