Thermodynamic States and Transitions Diagrams in Surface Engineering for the Material Degradation Prevention