Oxide ion conductivity, Resistive-switching and Ferroelectricity of Doped-HfO2