Generalized modes in time-domain seakeeping calculations