Negative ions in afterglows in atmospheric gases