Ion migration in crystalline and amorphous HfO X