Early prediction of extubation failure in patients with severe pneumonia: a retrospective cohort study