Nonequilibrium discharges in air and nitrogen plasmas at atmospheric pressure