Synthetic control of the photophysical and photoelectrochemical properties of ruthenium(II) polypyridyl complexes