Real-Time On-Board Measurement of Mass Emission of NOx, Fuel Consumption, Road Load, and Engine Output for Diesel Vehicles