A new framework for crack tracking in elastodamaging materials based on the regularized extended finite element method