Dielectric function of polycrystalline gold films: Effects of grain boundary and temperature