RF systems: Waveguides and cavities