Dynamic piezo-thermoelectric generator for simultaneously harvesting mechanical and thermal energies