Characterization of failure and energy dissipation mechanisms in MEMS resonators