On the determination of the pair correlation function from liquid structure factor measurements