Second-order wave interaction with two-dimensional floating bodies by a time-domain method