Macro-modeling of micro-electrical-mechanical system devices