Text this: Earnings functions, labour market discrimination and quality of education in South Africa