Dynamic extended finite element method (XFEM) analysis of discontinuous media