Numerical hydrodynamic modelling of a pitching wave energy converter