Non-linear association of atherogenic index of plasma with insulin resistance and type 2 diabetes: a cross-sectional study