Invariant spaces at infinity of linear systems application to block decoupling