Nonlinear oscillations in a MEMS energy scavenger