Simulation of martensitic transformations in TRIP-steel and Fe-based shape memory alloy