A rule-based phase control methodology for a slider-crank wave energy converter power take-off system