Mathematical study of an evolution problem describing the thermomechanical process in shape memory alloys