Depletion field focusing in semiconductors