Subject choice and inequalities in access to higher education