SNNs with analog neurons and RRAM synapses