State space theory of automorphisms of rational matrix functions