Long-Term Subclinical Hyperglycemia and Hypoglycemia as Independent Risk Factors for Mild Cognitive Impairment in Elderly People.