Dicyanamide Ions as Complexing Agents of Co(II): From Weak Ligands in Water to Strong Ones in an Ionic Liquid