First-Principles Investigations Of Conductivity Control In Wide-Band-Gap Semiconductors