Resonator in MEMS technology