Simulation and modeling of the effect of temperature on MEMS resonators