Quantum mechanical and semiclassical studies of N+N2 collisions and their application to thermalization of fast N atoms