Measurement of gestational age and maturity