Magnetic and spectral properties of nickel(II) complexes of ligands containing O, N, and S donor atoms