Exploring the impact of parity and its interaction with history of preterm delivery on gestational duration