How is diabetes diagnosed?