Optical properties of magnetic photonic crystals with an arbitrary magnetization orientation