How prenatal infections shape newborn health