I asked a more general Question before, in whiches answer this question arose: If you look at this picture (I have similar pictures in my books on the topic, where they evade the question):
(where I assume $E_{Fn}$ and $E_{Fp}$ to be meant as the (quasi-) chemical potential of the holes and the electrons in that point). In b) there is drawn a plot of $E_{Fn}$, and it is curved (obviously because of the influence of a applied potential). $E_{Fn}$ is curved in such a way, that its values far in the n and far in the p-Region differ exactly by the the applied potential difference between the two regions (That means, applying a voltage V shifts the chemical potential at one end of the pn-junction by an Energy eV).
I want to know why the chemical potential $E_{Fn}$ is shifted exactly(!) like that? Is there any quasi-equilibrium-condition that forces it to do so? In what region is this condition valid? What theory describes this behaviour? Is has to be some theory that makes statements about chemical potentials, but it isn't thermodynamic, which just makes statements about thermodynamic equilibrium (this junction is not in equilibrium).