Thermodynamically self-consistent integral equations and the structure of liquid metals