XFEM and EFG Cohesive Fracture Analysis for Brittle and Semi-Brittle Materials