Sexually transmitted disease and HIV prevalence and risk factors in concentrated and generalized HIV epidemic settings