Energy-maximising moment-based constrained optimal control of ocean wave energy farms