Failure Mechanisms in MEMS/NEMS Devices