Intelligent light-driven flexible solar thermoelectric system