RRAM SPICE Model with Three Model Levels