Elements for a Structural Theory of Ethnic Segregation and Assimilation