Design and simulation of a pendulum based 3D printed electromagnetic energy harvester