Repetitive switching behaviour of a memristor for passive crossbar applications