Application of Variational Equation of Motion to the Nonlinear Vibration Analysis of Homogeneous and Layered Plates and Shells