Chemical generation of atomic iodine for chemical oxygen–iodine laser. I. Modelling of reaction systems