Reconstruction of the orientational pair-correlation function from neutron-diffraction data: The case of liquid hydrogen iodide