Integrated processes for industrial wastewater treatment