A phenomenological approach for real-time simulation of the two-way shape memory effect in NiTi alloys