Laue diffraction in one dimensional photonic crystals - the way for phasematched second harmonic generation