Wafer-scale and patternable synthesis of NbS2 for electrodes of organic transistors and logic gates