Efficient Modal Analysis of Periodic Structures Loaded With Arbitrarily Shaped Waveguides