Rare earth discoveries mean coal mines could have a key role to play in the energy transition