Model Predictive Control of a Wave Energy Converter