Time domain simulations of ship motions