Performance of a thermoelectric generator intensified by temperature oscillation