Time domain prediction of motions of marine vehicles in waves