Representation Theorem for Matrix Product States