Electrochemistry and spectroelectrochemistry of polypyridine ligands: A theoretical approach