Maximizing power output from a wave energy plant