An aggregation-induced emission-based ratiometric fluorescent chemosensor for Hg(II) and its application in Caenorhabditis elegans imaging.