Predicting of reactions during carburization and decarburization of steels in controlled atmospheres