Thermal work function shifts for polycrystalline metal surfaces