Growth- and processing-induced defects in semiconductors