Sprinkled with power: How impurities enhance a thermoelectric material at the atomic level