Modelling and implementation of power take-off for wind / wave generation systems on test facilities