Learning Pair Potentials using Differentiable Simulations