Development of a four population model of the anaerobic degradation of carbohydrates