Pair correlation functions and density profiles in the primitive model of the electric double layer