where the sum runs over the different species i to be exchanged. This definition also indicates that from physical reasons the calculation of a slab formation energy makes sense only for bi-or multicomponent slabs where only part of the atoms in the initial slab was exchanged, while for single component systems, i.e., for complete exchange of the atoms in the initial slab, the use of this reference system would be arbitrary.