Text this: Association between pulmonary ventilation function and cognitive function among middle-aged and older adults: an observational study from Southwest China