On the discretization of some nonlinear Fokker-Planck-Kolmogorov equations and applications