Resistive switching random access memory (RRAM) : analysis, modeling, and characterization toward practical applications