Soldiers of Democracy: Military Legacies and Democratic Transitions in Egypt and Tunisia