Pre-industrial and industrial racial stratification in South Africa