Use of recycled RO membranes for treatment of wastewater and tertiary treatments