Islamic State forces took the Iraqi and Syrian authorities by surprise last year when they seized large swathes of territory