Resonant nonlinear light propagation via optical waveguides with localized flaws and general geometric interpretation | Synapse