Adaptive control of a wave energy converter simulated in a numerical wave tank