2D h-BN based RRAM devices