South Africa appoints first female chief justice