Real-time model for the prediction of the NOx emissions in DI diesel engines