flexural and shearing stresses in beams