Generating functionals, consistency, and uniqueness in the integral equation theory of liquids