Error estimation for crack simulations using the XFEM