Quantum theory of the competition between multiphoton ionization and third-harmonic generation | Synapse