Wastewater treatment systems for synthetic fuels plants based on peat and oil shale