Institutions, culture and background: the school performance of immigrant students