Time-domain simulation of wave-induced nonlinear motions and loads and its applications in ship design