Structural Conformation and Optical and Electrochemical Properties of Imidazolyl-Substituted Naphthalenediimide and Its HgII, CdII, and CuII Halide Complexes