Magnetic routing of light induced waveguides