A beam finite element based on damage mechanics for dynamical structural analyses