Simple model for carrier densities in the depletion region of p-n junctions