Ligand effects on the structures of extended networks of dicyanamide-containing transition metal ions