Determination of X-ray scattering factors with liquid specimens