The impact of air pollution on cognitive function