Extended finite element method with global enrichment