Terrorism and Democratic Stability