Ultraviolet scattering properties and the size distribution of interstellar grains