From discrete molecule, to polymer, to MOF: mapping the coordination chemistry of Cd(II) using (113)Cd solid-state NMR.