Pathogenesis of endometriosis