A new verilog-A compact model of random telegraph noise in oxide-based RRAM for advanced circuit design