wastewater treatment process in mining flow diagram