What the global flow of guns tells us about how states fail