Optical measurement of the Soret coefficient and the diffusion coefficient of liquid mixtures