ISIL nearing defeat in Syria