Ethnic Heterogeneity and Knowledge Formation in Europe