Correlation between structural defects and optical properties in ion-implanted silicon