Electron Microscopy Based Characterization of Resistive Switches