Protonmotive force generation by a redox loop mechanism