Environments of ion-implanted dopants in amorphous silicon at various stages of annealing