Finite bending of a stretchable thin-film transistor