Steric and electronic effects in the bonding of N-heterocyclic ligands to transition metals