Structured systems within the transfer matrix approach: Application to decoupling