Micromachined piezoelectric-on-silicon platform for resonant sensing and energy harvesting