Text this: Optimizing stability and characteristics of a vibrating rigid body pendulum with energy harvesting device