Unifying optical gain and electro-optical dynamics in Er-doped thin-film lithium niobate platform | Synapse