I have a question about the Fermi level, for example in a MOS capacitor under an external voltage Vg:
We know that a MOS capacitor without external voltage (ie in equilibrium) has a uniform and straight Fermi level in space.
When an external voltage is applied, the Fermi level splits into two levels - one in the metal and one in the semiconductor, where the difference between them depends on the applied voltage.
My question is why Fermi levels are uniform on each side separately - on the side of the metal the Fermi level is straight, and also on the side of the semiconductor it is straight (and as we said they are not at the same height)?