On the use of photothermal techniques to study NiTi phase transitions