Pair approximation equations for interfaces and free surfaces in the Ising model