Constrained optimal control of a point absorber wave energy converter with linear generator