Micro-resonator having lid-integrated electrode