A generalized Hillerborg’s model for the analytical evaluation of ductility of RC beams in bending