Modifiers of cognitive function and brain structure in middle-aged and elderly individuals with type 2 diabetes mellitus