A woman who is 8 months pregnant has been advised to have an amniocentesis. She asked the nurse the reason for the procedure. The usual reason for an amniocentesis during this period of pregnancy is to determine _________________________.