Reference governor for constrained nonlinear systems