Comparison of carbon monoxide and nitrogen as ligands in transition metal complexes