Best test for fetal maturity in a diabetic mother is :