The resistance increase of a ship in waves