Scientists are finding creative ways to repurpose pollutants, both in the form of energy and physical products.