Resistive switching of anodic TiO2-based Memristors