here I found this diagram, see attachment, so that I can put my question in a clear way.
this is a pn-junction, on both sides is the same material but different doping, p and n, so before we bring them in contact only the fermi levels are different but the energy levels are equal. after the...