A second order random wave model for predicting the power performances of a wave energy converter