A comparative study of Be and Mg ions adsorbed on TiO2 photoelectrodes on interfacial charge recombination in solar cells