Stretchable thin-film generator with dual working modes for body motion energy harvesting