Coligand-regulated assembly, fluorescence, and magnetic properties of Co(II) and Cd(II) complexes with a non-coplanar dicarboxylate