Development and assessment of model-based algorithms for torque and emission control in diesel engines