Density functional theory of the Seebeck coefficient in the Coulomb blockade regime