Transient proton uptake and release is associated with the photocycle of the photoactive yellow protein from the purple phototrophic bacterium Ectothiorhodospira halophila.