Study of an Energy-Harvesting Damper Based on Magnetic Interaction