Energy conservation in chemotrophic anaerobic bacteria