The density of surface ligands regulates the luminescence of thiolated gold nanoclusters and their metal ion response