Nonlinear control of flap-type wave energy converter with a non-ideal power take-off system