Phase-matched second harmonic generation in 1D photonic crystal in the laue geometry