Spatial harmonics modelling of planar periodic segmented waveguides