Formation of nanostructured states in ternary TiNiFe-based shape memory alloys during megaplastic deformation and subsequent heat treatment