Algorithms for the evaluation of the ultimate flexural limit state of RC sections