Performance of non-invasive respiratory function indices in predicting clinical outcomes in patients hospitalized for COVID-19 pneumonia in medical and sub-intensive wards: a retrospective cohort study