Association of serum uric acid and fasting plasma glucose with cognitive function: a cross-sectional study