Design and optimization of exhaust gas aftertreatment system for a heavy-duty diesel engine