Characterization of nonvolatile switches based on 2-D multilayered hBN memristors for high-frequency applications