Structural changes in phosphorus-ion-implanted silicon