Graeme Wood traces the origins of this work and his pursuit of greater understanding of the Islamic State to having almost been killed by a suicide bomber in Mosul in 2004.