Synthesis of fluorescent ionic liquid-functionalized silicon nanoparticles with tunable amphiphilicity and selective determination of Hg2.