Doping and Defects in Complex Semiconductors