pH assisted selective detection of Hg(II) and Ag(I) based on nitrogen-rich carbon dots