Grain-size-dependent thermal conductivity of nanocrystalline materials