Correlation of HbA1c levels in late pregnancy with maternal and perinatal outcome in patients with gestational diabetes mellitus