The Wartime Origins of Democratization: Civil War, Rebel Governance, and Political Regimes