Optoelectronic polymer memristors with dynamic control for power-efficient in-sensor edge computing | Synapse