purpose of gold mining in south africa