Optimization and energy maximizing control systems for wave energy converters