Conductance quantization in resistive random access memory