As the fetal brain develops in the womb, factors ranging from air quality to birth timing could have lasting effects.