Heat treatment of metallic materials