Optical soliton perturbation with time- and space-dependent dissipation (or gain) and nonlinear dispersion in Kerr and non-Kerr media