Elastic-plastic response of beams including effects of shear and rotatory inertia