Functional Retinal Outcomes and Association with Health Metrics in Patients with Prediabetes and Type 2 Diabetes