Cohesive delamination and frictional contact on joining surface via XFEM