A comparison of molecular hyperpolarizabilities from gas and liquid phase measurements