Association between vascular measures and cognitive function in type 2 diabetes.