A tunable ratiometric pH sensor based on carbon nanodots for the quantitative measurement of the intracellular pH of whole cells.