magnet-based power generation