Core–shell nanotubes to enhance electrical bistability for 2-bit memory