Leadership Transitions In and Out of Dictatorships