Trapped-ion based technique for measuring the nuclear radii of highly-charged radioactive isotopes