Enhancement of NiTi alloys biocompatibility and corrosion resistance by thermal treatments