Prediction of preterm birth in nulliparous women using logistic regression and machine learning