A Technique for Modeling and Simulating Transistor Based MEMS Sensors