Rates of intrauterine fetal demise and neonatal morbidity at term: determining optimal timing of delivery