Magnetic accelerator weapon