A population‐based study of the effect of pregnancy history on risk of stillbirth