A self-consistent model of a nonequilibrium discharge at atmospheric pressure