The effect of radiation on the energy resolution of ion-implanted silicon detectors