Modelling of the carburizing and nitriding processes