Phase transformation of metals and alloys