An evaluation of age–sex distributions of South Africa's population within the context of HIV/AIDS