Nonlinear mechanism in mems devices for energy harvesting applications