Third harmonic generation as a diagnostic of properties of ion-implanted silicon