Nanoscale lateral switchable rectifiers fabricated by local anodic oxidation