Decomposition of matrix sequences