Force-gradient sensing and entanglement via feedback cooling of interacting nanoparticles