magnetic swinging pendulum