Short- and long-term prognosis for middle-aged and elderly patients hospitalized with community-acquired pneumonia: impact of nutritional and inflammatory factors.