Density-Driven Correlations in Many-Electron Ensembles: Theory and Application for Excited States.