Monolithic 3D integration of 2D transistors and vertical RRAMs in 1T–4R structure for high-density memory