Functional renormalization group of the nonlinear sigma model and theO(N)universality class