Enhanced thermoelectric performance through energy-filtering effects in nanocomposites dispersed with metallic particles