Nanowire-based RRAM crossbar memory with metallic core–oxide shell nanostructure