Potential-distribution theory and the statistical mechanics of fluids