Self-encapsulation of organic thin film transistors by means of ion implantation