Micro- and nano-electromechanical devices, referred to as MEMS and NEMS, are ubiquitous. These nanoscale machines with movable parts are used, for example, to trigger cars' airbags following a shock.