Effect of chemical reactions in laser induced molecular excitation