Spectroscopic study of solvent polarity in binary liquid mixtures