A population-based study of maternal and perinatal outcome in patients with gestational diabetes