Semidiscretization and long-time asymptotics of nonlinear diffusion equations