Boundary conditions for integrable discrete chains