Waste heat and water recovery from natural gas