Attitudes towards immigration and their antecedents