Use of a triboelectric generator for a tunable wideband energy harvester and a threshold shock sensor