Association between thyroid function and risk of gestational diabetes mellitus in assisted pregnancies: a retrospective cohort study.