Spectroscopic measurement of the refractive index of ion-implanted diamond