A damage-plastic beam element for the static and dynamical analysis of R/C frames