F−/OH− Triggered Optical Switching Functions of Naphthalimide Chromophoric Materials