How can diabetes cause intrauterine growth restriction and large for gestational age infants?