Environmental scientists develop a method to turn hazardous acidic industrial wastewater into valuable resources