rare-earth element thermo-heat treatment