A review of literature on the factors affecting wastewater treatment and recycling across a broad spectrum of economic stages of development