Nonlinear vibration of beams and rectangular plates