Nonparametric estimation of the pair correlation function of replicated inhomogeneous point processes