Eliminating dopant diffusion after ion implantation by surface etching