how to determine diabetes