Hypervirial calculation of perturbed—Morse-oscillator potentials for diatomic molecules