Heterogeneous physical and chemical processes in a rarefied-gas flow in channels