Relationship between insulin resistance and β-cell dysfunction in subphenotypes of prediabetes and type 2 diabetes.