AutoMM: Automatic Generation of Dynamic Macromodels for MEMS Devices