Sensors specially adapted for EGR systems for determining the characteristics of gases, e.g. composition