Effect of grain-boundary scattering on the electrical resistivity of indium films