The thermodynamics of stress-induced martensites in Cu Al Ni alloys