Tight‐binding theory of heterojunction band lineups and interface dipoles