Effect of the counterion on light emission: a displacement strategy to change the emission behaviour from aggregation-caused quenching to aggregation-induced emission and to construct sensitive fluorescent sensors for Hg2+ detection.