Association between lung function and the risk of atrial fibrillation in a nationwide population cohort study