Voting after the bombing: Can terrorist attacks change the outcome of democratic elections?