Development of a model predictive controller for the wave energy converter control competition