Controlling Dopant Distributions and Structures in Advanced Semiconductors