Vibrational dephasing in H2 and HD dissolved in liquid and hypercritical argon