Social mobility or social reproduction? A case study of the attainment patterns of students according to their social background and ethnicity