I use waveguides equivalent T-circuit. I derive it form the A matrix of the waveguide with connected transformers. Result is close to the one, given in the Waveguide Handbook. The only difference is Z0 n^2 instead of Z0. So no mixing of A, Z and S matrices together, only transformations between them.