On the Derivation of the Molecular Virial Theorem