Machine learning for detecting fetal hypoxia using cardiotocography and pregnancy risk factors