Numerical prediction of non-equilibrium flows in hypersonic nozzles:state-to-state kinetics versus macroscopic models