Solving Nonlinear Diffusion Equations without Stochastic Homogeneity Using the Homotopy Perturbation Method