Beam propagation analysis of quasi-phase matched second harmonic generation devices