On the calculation of the potential of mean force between atomistic nanoparticles