The chemical reaction mechanism in the detonation of explosives