Mechanical model for failure of compressed concrete in reinforced concrete beams