NOx production in spark and corona discharges