Interpretation of the 6818.9-Å methane line in terms of inhomogeneous scattering models for Uranus and Neptune