Thermal and thermo-mechanical treatments on shape memory alloys