Examination of large amplitude vibrations of a nonlinear oscillator for energy harvesting