Model Predictive Control of Sea Wave Energy Converters - Part I: A Convex Approach for the Case of a Single Device