Effect of aliovalent impurities on the resistance switching characteristics of sputtered hafnium oxide films