A novel discrete control for wave energy converters with a hydraulic power take-off system