The Concept of Physical Metric in the Thermomechanical Modeling of Phase Transformations With Emphasis on Shape Memory Alloy Materials