In the design of reinforced concrete beams, what is the purpose of providing shear reinforcement such as stirrups or links?