Scattering matrix for chiral harmonic generation and frequency mixing in nonlinear metasurfaces | Synapse