Adjustable built-in resistor on oxygen-vacancy-rich electrode-capped resistance random access memory