Automated assessment of redox potentials for dyes in dye-sensitized photoelectrochemical cells