Interaction of bifunctional carbonyl and phosphoryl ligands with M3+ lanthanide cations: how strong is the bidentate effect? The role of ligand size and counterions investigated by quantum mechanics