Memory Effect And Rf Switch Applications Based On Two-Dimensional Materials