Kinetics of charge transfer reactions in photoelectrochemical cells