Empirical model of atomic nitrogen in the upper thermosphere