Chapter 1 The Effect of Crystal Defects on Optoelectronic Devices