A comparative study of top-down and bottom-up carbon nanodots and their interaction with mercury ions