Surface Octahedral Distortions and Atomic Design of Perovskite Interfaces