On the virial theorem value and scaling of Coulomb-bound states in semiconductor heterostructures: effects of magnetic fields