A comparative study of linear elastic and elasto plastic fracture modeling by XFEM