Tensor diagonalization - a new tool for PARAFAC and block-term decomposition