Formulation of a three-dimensional shear-flexible bimaterial beam element with constant curvature