The role of the school curriculum in social mobility