multi gas detector working principle