Modeling nonlinear acoustic wave fields in media with inhomogeneity in theattenuation and in the nonlinearity