Stability, bistability and instability of amorphous ZrO2 resistive memory devices