Real-time encoding and compression of neuronal spikes by metal-oxide memristors | Synapse