Effect of discretization on dynamical behavior of SEIR and SIR models with nonlinear incidence