SMS dit: Electromagnetic theory and application for photonic crystals /