Infrared gas analysis