Title: Energy relations of thermomechanical processes and crystallographic transformations in shape memory alloys