Irreversible thermodynamics of metals under stress