Associations between comorbidity-related functional limitations and pneumonia outcomes.