the medium being a metal or rare earth metal, an intermetallic compound or a metal alloy