Integrated water and resource recovery network for combined domestic and industrial wastewater