Direct statistical modeling (DSMC) of rarefied gas flows taking into account heterogeneous and gas-phase reactions