Rydberg excitation of trapped cold ions: a detailed case study