Variational principles which are functionals of electron density