The control of acidity in tumor cells: a biophysical model