The Role of the Military in the Arab Uprisings: The Cases of Tunisia and Libya