High frequency linear accelerator: perturbative study of the transmission matrix of a two port device chain