Nonlinear response of a buckled beam to a harmonic excitation