Force-, heat- and acid-induced fluorescent switching properties of an anthracene-based hydrazide derivative.