Measurement of air-fuel ratio in internal combustion engines using neural networks