Compact modeling of a MEMS toggle-switch based on modified nodal analysis