On the spectrum of waveguides in planar photonic bandgap structures