The hydrodynamic forces and ship motions in waves