Application of pulsed photoelectrochemical detection