Mining wastewater treatment technologies and resource recovery techniques A review