Surface modes at metallic and photonic crystal interfaces