A mathematical model for two-phase flow in a continuous digester