Direct writing of in-plane-gated nanostructures by focused laser beam-induced doping