Nonuniform viscosity in the solar nebula and large masses of Jupiter and Saturn