Consequences of gestational and pregestational diabetes on placental function and birth weight.