Distinguishing between type 1 and type 2 diabetes