Chemical effects of large impacts on the Earth's primitive atmosphere