A Theory of Military Dictatorships