Impact of impaired glucose tolerance and type 2 diabetes on cognitive aging