Heat treating and inspection of metals