Quantitative analysis of surface sites on carbon dots and their interaction with metal ions by potentiometric titration method.