Study shows how adding impurities to thermoelectric material