Organic thin-film transistors and their application in light detection