Duration of length of stay in pneumonia: influence of clinical factors and hospital type