Model-Based Control of Torque and Nitrogen Oxide Emissions in a Euro VI 3.0 L Diesel Engine through Rapid Prototyping