Resistive switching and memristors