An electrogenic redox loop in sulfate reduction reveals a likely widespread mechanism of energy conservation