On the relation between X-ray small-angle scattering and electrical resistivity