Pulsed photoelectrochemistry of titanium dioxide