How is pelvic endometriosis diagnosed?