Modelling of catalytic aftertreatment of NOx emissions using hydrocarbon as a reductant