Hybrid generator based on freestanding magnet as all-direction in-plane energy harvester and vibration sensor