Autochthonous and foreign workers in the spanish labour market : substitution, competition and segregation