Actor–critic networks with analogue memristors mimicking reward-based learning | Synapse