An induction rotating coil for longitudinal scanning of particle accelerator magnets