On the phase formation of sputtered hafnium oxide and oxynitride films