Optimal Political Institutions in the Shadow of Conflict.