Cognitive Functioning and Social Structure Over the Life Course.