The structure and spectra of nickel(II) and copper(II) complexes