Multipacting-free transitions between cavities and beam-pipes