There is a general formulation for the contact difference of potential between two any two semiconductors or even two materials. Such junctions are called heterojunctions.
The contact difference of potential phi= The work function difference of the two contacted materials. Assume that the work function of the two materials are phi1 and phi2, then phi= Ph1-ph1
The work function of a material is the difference between the vacuum level and the Fermi-level= Ev-Ef
For an application of this principle please follow the paper in the link:Article M. Abdelnaby, A. Zekry, F. Elakkad and H. F. Ragaie, “ Depen...
and the paper:Conference Paper Generic Analytical Models for Organic and Perovskite Solar Cells