Association of Prediabetes and Type 2 Diabetes With Cognitive Function After Stroke