The theory of tensor LEED