Modeling and numerical simulation of multiphase chemical reactions in exhaust gas aftertreatment systems