Microenvironmental pH control of drug dissolution