Self-rectifying behavior and analog switching under identical pulses using Tri-layer RRAM crossbar array for neuromorphic systems