A versatile leaky-wave antenna based on stub-loaded rectangular waveguide, Part II: Effects of flanges and finite stub length