Forming the micromechanical structure with a CMOS process