Optimization of the Thermoelectric Power Factor: Coupling between Chemical Order and Transport Properties