Pair and singlet correlation functions of inhomogeneous fluids calculated using the Ornstein-Zernike equation