Glycemic signatures in the early diagnosis and personalized treatment of diabetes