Text this: From flexible electronics to flexible photonics