Association of serum magnesium with metabolic syndrome and the role of chronic kidney disease: A population‐based cohort study with Mendelian randomization