Asymptotic behavior of solutions of a nonlinear diffusion equation with a source term of general form