Domain and boundary quadrature for enrichment functions in the extended finite element method