Dynamic modeling and simulation of the anaerobic digestion process