Spectrum created by line defects in periodic structures