An efficient naphthalimide based fluorescent dyad (ANPI) for F− and Hg2+ mimicking OR, XNOR and INHIBIT logic functions