Associations of maternal hyperglycemia in the second and third trimesters of pregnancy with prematurity