Effect of the softness of the pair potential on the liquid structure factor