XFEM approach to nonlinear analysis of composite structures