How the raw materials we need for renewable energy and digital technology are hurting people and the planet—and how we can do better.