Thermomechanical Coupling and Localization Effects Examined in Shape Memory Alloys and Polymers by Fast and Sensitive Infrared Camera