Exact Solutions for the Elastic Buckling Problem of Moderately Thick Beams