Diagnosis and management of endometriosis