Rational design of a colorimetric and ratiometric fluorescent chemosensor based on intramolecular charge transfer (ICT).