From prejudice to discrimination: The legitimizing role of perceived threat in discrimination against immigrants