Critical minerals for the energy transition: rare earth metals