Influence of shear deformation on the design of the stiffest elastic beam