Modeling and simulation of polysilicon piezoresistors in a CMOS-MEMS resonator for mass detection