how does tuberculosis affect the lungs