A regularized XFEM model for the transition from continuous to discontinuous displacement