A cross-sectional study on the associations of insulin resistance with sex hormone, abnormal lipid metabolism in T2DM and IGT patients