Factors related to the offer of HIV testing and known HIV status in persons with tuberculosis