Experimental and theoretical study of electrode effects in HfO2 based RRAM