Gain-assisted control of the photonic spin Hall effect | Synapse