Variational Approach to Beams Resting on Two-Parameter Tensionless Elastic Foundations