First principle simulations on the effects of oxygen vacancy in HfO2-based RRAM