A selective colorimetric fluorescent chemosensor for Hg2+ in aqueous medium and in the solid state