Response of a nonlinear two-degree-of-freedom system to a horizontal harmonic excitation