The influence of smoking and HIV infection on pulmonary function