Algebraic Formulation for Moderately Thick Elastic Frames, Beams, Trusses, and Grillages within Timoshenko Theory