Magnetooptical properties of two dimensional photonic crystals