Modeling fetal--maternal heart-rate interaction