Linear and nonlinear modeling and control of a power take-off simulation for wave energy conversion