Resistive random access memory : doping technology, pulse characterization and scalability