Construction of 0D to 3D cadmium complexes from different pyridyl diimide ligands.