Determinants of knowledge of HIV status in South Africa: results from a population-based HIV survey