Leadership transitions and survival: Coups, autocoups, and power dynamics