Electrochemical and chemical syntheses, structures, and optical properties of the zinc and cadmium complexes in the N,N,O,S-ligand environment