Model-based control of torque and nitrogen oxide emissions in a Euro VI 3.0L diesel engine through model-in-the-loop