A simple fluorescent sensor for the meticulous recognition of Cu2+ ion and its functioning in logic gate and keypad lock