Application of real-time nonlinear model predictive control for wave energy conversion