An extended finite element method with analytical enrichment for cohesive crack modeling