Optimal Integrated Emission Management For Diesel Engines