Thermoelectric performance of weakly coupled granular materials