Stateful characterization of resistive switching TiO2 with electron beam induced currents