Thermodynamics of duplex stainless steels