Role of oxygen vacancies in ferroelectric or resistive switching hafnium oxide | Synapse