Expansion and social selection in education in England and Scotland