Critical materials and the energy transition