Analysis and Design Principles of MEMS Devices