Longitudinal changes in gray matter correspond to changes in cognition across the lifespan: implications for theories of cognition