Fano resonances and band structure of two dimensional photonic structures