Slow light superstructure gratings for optical storage and enhancing second harmonic generation