Reinforced and Prestressed Concrete: Critical stress state analysis of beams