Comparative study between XFEM and Hashin damage criterion applied to failure of composites