Design, test and analysis of a threshold-value judging mechanism in silicon-based MEMS safety and arming device