Electronic quality factor for thermoelectrics