Association among dietary magnesium, serum magnesium, and diabetes: a cross-sectional study in middle-aged and older adults