Metabolically engineered bacteria for producing hydrogen via fermentation