Finite-size integral equations in the theory of liquids and the thermodynamic limit in computer simulations