Relation of cardiac complications in the early phase of community-acquired pneumonia to long-term mortality and cardiovascular events