Smoking raises risk of contracting pneumonia