Syntheses and Crystal Structures of Cd(II) and Ni(II) Complexes Containing Flexible Sulfide and Nitrogen Heterocyclic Ligands