Analytic theory for parametric gain in lossy integrated waveguides | Synapse