Model-Based Optimal Emission Control Of Diesel Engines