Decade of 2D-materials-based RRAM devices: a review