Illness in mother boosts risk of miscarriage or stillbirth