Organic transistor and inverter based on assembly of organic nanowires achieved by optimizing surface morphology