Thermodynamic Analysis of Anomalous Shape of Stress–Strain Curves for Shape Memory Alloys