Prediction of the added resistance in waves using CFD