Ruling with Rules: Electoral Institutions and Authoritarian Resilience in the Middle East