A method of providing a layer structure of activated dopants in a semiconductor substrate, the method comprising:
- forming at least one amorphous sub-volume in a semiconductor substrate;
- implanting a first dopant in the amorphous sub-volume;
- activating the first dopant only in a first region of the amorphous sub-volume to form a boundary region within the sub-volume, wherein activating comprises recrystallizing the first region;
- implanting a second dopant in a second region of the amorphous sub-volume after activating the first dopant, and
- activating the second dopant in the second region of the amorphous sub-volume.