Prediction of added resistance of ships in waves