Drug delivery for the treatment of endometriosis and uterine fibroids