Boundary S matrix and boundary state in two-dimensional integrable quantum field theory