As the world shifts to clean energy, minerals such as lithium, cobalt and manganese have become as important as oil once was.