Generation of an electrochemical proton gradient in bacteria by the excretion of metabolic end products