They converted old tires into a material that not only purifies water using solar energy—but also generates a small amount of electricity.