Inter-CMOS process for monolithic integrated MEMS resonator