A Model for the Analysis of Ultimate Capacity of RC and PC Corroded Beams