Silver and proton driven fluorescent multiple-mode molecular logic gates employing phthalocyanines