First-principles simulation of oxygen vacancy migration in $$\hbox {HfO}_{ x}$$HfOx, $$\hbox {CeO}_{ x}$$CeOx, and at their interfaces for applications in resistive random-access memories