Compact photonic model based on coupled-mode theory for nonlinear interactions in electronic-photonic co-simulation | Synapse