Tuning Structure and Thermal Evolution of High-ZT Thermoelectrics Using First Principles.