What valuable resources were discovered in South Africa in the late 1800s?