Electrical characterization of a buried GaSb p-n junction controlled by native defects