Energy Storage and Absorption of TiNi Shape Memory Alloy under Various Thermomechanical Loading Conditions