Defects and electronic structure of GaN door