Modeling of glycerol production by fermentation in different reactor states