It really depends on the actual interface between the two materials, as well as on the computational method used for electronic structure calculation and related geometry optimization. So, you have to build the actual junction structure of your interest and do structural optimization using an appropriate electronic structure method for the junction.