A reversible micro mechanical-latch shock switch by external magnetic field