A methodology for CFD simulations of floating structures in waves coupled with mooring dynamics