When Do Governments Resort to Election Violence?