The Science of Rare Earth Elements