Chitosan-functionalized gold nanoparticles for colorimetric detection of mercury ions based on chelation-induced aggregation