Computation of pair distribution functions and three-dimensional densities with a reduced variance principle | Synapse