Oil and gas wastewater treatment process