Validity of virial theorem in all-electron mixed basis density functional, Hartree-Fock, and GW calculations.