On the Solution of Beam-on-elastic-foundation Problems by Means of a Mechanical Analogue