Anaerobic acidification of sugar-containing wastewater for biotechnological production of organic acids and ethanol