Brittle to Ductile Fracture Behavior of Isotropic Power-Law and Sigmoidal Hardening Porous Solids Using XFEM Method