Analyses of the generalized-alpha method for linear and non-linear forced excited systems