Thermodynamics of Stress‐Induced First‐Order Phase Transformations in Solids