Thermodynamics of thermally induced martensitic transformations in Cu–Al–Ni shape memory alloys