Control of optical and electrical properties of nanosheets by the chemical structure of the turning point in a foldable polymer.