Local Exchange Approximation and the Virial Theorem