Piperazine-based simple structure for selective sensing of Hg2+ and glutathione and construction of a logic circuit mimicking an INHIBIT gate