Performance of fetal ultrasound and magnetic resonance imaging in predicting birthweight according to the test-to-delivery interval: a cohort study