Memristor with a ferroelectric HfO2 layer: in which case it is a ferroelectric tunnel junction