Flexible hybrid piezoelectric-thermoelectric generator for harnessing electrical energy from mechanical and thermal energy