Robust fuel consumption estimation for on-line optimization of diesel engines