How the Gulf crisis spurred Qatar to expand its military