Wastewater treatment by forward osmosis (FO) based system for resource recovery