A law and economics perspective on terrorism