Carotenoid-rich dietary patterns during midlife and subsequent cognitive function