Equilibrium properties of molecular liquids and liquid crystals: pair correlation functions and isotropic-nematic transition