A versatile leaky-wave antenna based on stub-loaded rectangular waveguide, Part I: Theory