Thermionic emission-diffusion theory of isotype heterojunctions