Existence of Ground States of Nonlocal-Interaction Energies