Co-design of a wave energy converter using constrained predictive control