Quasi-phase-matched second harmonic generation: tuning and tolerances | Synapse