Ligand effect on the luminescence of gold nanodots and its application for detection of total mercury ions in biological samples