Error Analysis of TT-Format Tensor Algorithms