Controlled long-range interactions between Rydberg atoms and ions