Flexible organic thin-film transistors based on poly(3-hexylthiophene) films for nitrogen dioxide detection