Elections and Government Legitimacy in Fragile States