Magnetic pulse weapon