modeling an anaerobic digester for biogas production pdf