Cross-sectional and longitudinal associations between serum 25-hydroxyvitamin D and cognitive functioning