Characterization of the aggregation-induced enhanced emission, sensing, and logic gate behavior of 2-(1-hydroxy-2-naphthyl)methylene hydrazone