Thin-film transistors and circuits on plastic foil