Discuss the theoretical principles behind the behavior of reinforced concrete under flexural loading. How do factors like strain compatibility and stress distribution influence the design of reinforced concrete beams?